<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>javax.microedition.payment package</title>
<!--
  
   Copyright  2009  Sun Microsystems, Inc. All rights reserved.

-->
</head>
<body>
<p>This package provides the payment application programming interface.
This application programming interface has been designed to allow for
an asynchronous handling of payment transactions. This is achieved by
an emit/notify mechanism, respectively represented by the
<code>TransactionModule</code> class and <code>TransactionListener</code>
interface.</p>
It is also part of the design that no basic <code>TransactionException
</code> class has been specified. Thereby it is avoided that an
application developer uses a general <code>catch(TransactionException)</code>
to (not) handle all payment related exceptions. It is also part of the
design that the developer must set a listener for transaction
notifications. In the case this is omitted, a <code>TransactionListenerException</code>
is thrown where
appropriate.
<h2>Design</h2>
The following UML diagram details the previously defined classes and
interfaces and shows also the interaction between those classes:<br>
<br>
<img style="width: 677px; height: 493px;" alt="design"
 src="doc-files/design.gif"><br>
<br>

</body>
</html>
